import { http } from '@/utils/http'
export interface IFooItem {
  id: string
  name: string
}

/** GET 请求 */
export const getFooAPI = (name: string) => {
  return http.get<IFooItem>('/foo', { name })
}

/** POST 请求 */
export const postFooAPI = (name: string) => {
  return http.post<IFooItem>('/foo', { name }, { name })
}
// /kdcabinet/shop.login/mobileLogin
export const login = (param: any) => {
  return http.post('/kdcabinet/shop.login/mobileLogin', param)
}
export const getCabinetList = (param: any) => {
  return http.post('/kdcabinet/shop.shop/getCabinetList', param)
}
export const getOrderList = (param: any) => {
  return http.post('/kdcabinet/shop.order/getOrderLists', param)
}
// /kdcabinet/shop.shop/getPersonnelList
export const getPersonnelList = (param: any) => {
  return http.post('/kdcabinet/shop.shop/getPersonnelList', param)
}
// /kdcabinet/shop.shop/addPersonnel
export const addPersonnel = (param: any) => {
  return http.post('/kdcabinet/shop.shop/addPersonnel', param)
}
// /kdcabinet/shop.shop/getRechargeList
export const getRechargeList = (param: any) => {
  return http.post('/kdcabinet/shop.shop/getRechargeList', param)
}
// /kdcabinet/shop.order/getCabinetList
export const getRechargeList1 = (param: any) => {
  return http.post('/kdcabinet/shop.order/getCabinetList', param)
}
// /kdcabinet/shop.order/enterOrder
export const enterOrder = (param: any) => {
  return http.post('/kdcabinet/shop.order/enterOrder', param)
}
// /kdcabinet/shop.shop/getInfo
export const getInfo = (param: any) => {
  return http.post('/kdcabinet/shop.shop/getInfo', param)
}
// /kdcabinet/shop.order/getAllOrderLists
export const getAllOrderLists = (param: any) => {
  return http.post('/kdcabinet/shop.order/getAllOrderLists', param)
}
// /kdcabinet/shop.login/register
export const getRegister = (param: any) => {
  return http.post('/kdcabinet/shop.login/register', param)
}
